﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections;
using System.Windows.Forms;
using Nauka.GUI;
using Nauka.database;

namespace Nauka.engine
{
    public class MainProgram
    {
        public DBConn dbconn { get; set; }
        public MainWindow mainWindow { get; set; }
       // public StatisticsConfigurationWindow statConfWindow { get; set; }
       // public DBManagementWindow dbManagementWindow { get; set; }
        public StatsFilter statsFilter { get; set; }
        public StartingHands startHandsStats;
        private long hero_id;
        public long hero
        {
            get
            {
                return hero_id;
            }
        }

        public MainProgram(){
            dbconn = new DBConn(this);
            statsFilter = new StatsFilter();
            statsFilter.hero = "kfiatkos";
            hero_id = dbconn.getHeroId(statsFilter.hero);
            startHandsStats = new StartingHands(this);
            mainWindow = new MainWindow(this);
            mainWindow.Visible = true;
            mainWindow.Activate();
        }

        public void end_program()
        {
            Application.Exit();
        }

        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainProgram program = new MainProgram();
            Application.Run(program.mainWindow);
           
        }
    }
}
